﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000291 RID: 657
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueQueryDiffcultyInfo : IMessage<ChessRogueQueryDiffcultyInfo>, IMessage, IEquatable<ChessRogueQueryDiffcultyInfo>, IDeepCloneable<ChessRogueQueryDiffcultyInfo>, IBufferMessage
	{
		// Token: 0x1700088C RID: 2188
		// (get) Token: 0x06001D6A RID: 7530 RVA: 0x00053A89 File Offset: 0x00051C89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueQueryDiffcultyInfo> Parser
		{
			get
			{
				return ChessRogueQueryDiffcultyInfo._parser;
			}
		}

		// Token: 0x1700088D RID: 2189
		// (get) Token: 0x06001D6B RID: 7531 RVA: 0x00053A90 File Offset: 0x00051C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueQueryDiffcultyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700088E RID: 2190
		// (get) Token: 0x06001D6C RID: 7532 RVA: 0x00053AA2 File Offset: 0x00051CA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueQueryDiffcultyInfo.Descriptor;
			}
		}

		// Token: 0x06001D6D RID: 7533 RVA: 0x00053AA9 File Offset: 0x00051CA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiffcultyInfo()
		{
		}

		// Token: 0x06001D6E RID: 7534 RVA: 0x00053ABC File Offset: 0x00051CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiffcultyInfo(ChessRogueQueryDiffcultyInfo other) : this()
		{
			this.queryDifficultyIdList_ = other.queryDifficultyIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001D6F RID: 7535 RVA: 0x00053AE6 File Offset: 0x00051CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueQueryDiffcultyInfo Clone()
		{
			return new ChessRogueQueryDiffcultyInfo(this);
		}

		// Token: 0x1700088F RID: 2191
		// (get) Token: 0x06001D70 RID: 7536 RVA: 0x00053AEE File Offset: 0x00051CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> QueryDifficultyIdList
		{
			get
			{
				return this.queryDifficultyIdList_;
			}
		}

		// Token: 0x06001D71 RID: 7537 RVA: 0x00053AF6 File Offset: 0x00051CF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueQueryDiffcultyInfo);
		}

		// Token: 0x06001D72 RID: 7538 RVA: 0x00053B04 File Offset: 0x00051D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueQueryDiffcultyInfo other)
		{
			return other != null && (other == this || (this.queryDifficultyIdList_.Equals(other.queryDifficultyIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001D73 RID: 7539 RVA: 0x00053B38 File Offset: 0x00051D38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.queryDifficultyIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001D74 RID: 7540 RVA: 0x00053B6C File Offset: 0x00051D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001D75 RID: 7541 RVA: 0x00053B74 File Offset: 0x00051D74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001D76 RID: 7542 RVA: 0x00053B7D File Offset: 0x00051D7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.queryDifficultyIdList_.WriteTo(ref output, ChessRogueQueryDiffcultyInfo._repeated_queryDifficultyIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001D77 RID: 7543 RVA: 0x00053BA4 File Offset: 0x00051DA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.queryDifficultyIdList_.CalculateSize(ChessRogueQueryDiffcultyInfo._repeated_queryDifficultyIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001D78 RID: 7544 RVA: 0x00053BDD File Offset: 0x00051DDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueQueryDiffcultyInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.queryDifficultyIdList_.Add(other.queryDifficultyIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001D79 RID: 7545 RVA: 0x00053C0B File Offset: 0x00051E0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001D7A RID: 7546 RVA: 0x00053C14 File Offset: 0x00051E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U && num != 114U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.queryDifficultyIdList_.AddEntriesFrom(ref input, ChessRogueQueryDiffcultyInfo._repeated_queryDifficultyIdList_codec);
				}
			}
		}

		// Token: 0x04000C1D RID: 3101
		private static readonly MessageParser<ChessRogueQueryDiffcultyInfo> _parser = new MessageParser<ChessRogueQueryDiffcultyInfo>(() => new ChessRogueQueryDiffcultyInfo());

		// Token: 0x04000C1E RID: 3102
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C1F RID: 3103
		public const int QueryDifficultyIdListFieldNumber = 14;

		// Token: 0x04000C20 RID: 3104
		private static readonly FieldCodec<uint> _repeated_queryDifficultyIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04000C21 RID: 3105
		private readonly RepeatedField<uint> queryDifficultyIdList_ = new RepeatedField<uint>();
	}
}
